const rand = (start = 1, end = 100) => {
  return Math.round(Math.random() * (end - start) + start)
}

export default function getArrayData (array) {
  return array.map((v) => ({
    name: v,
    value: rand()
  }))
}
